import com.zzzs.beans.Person;
import com.zzzs.beans.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhu_shuai
 * @since 2021/6/18
 */
public class testDemo {
    public static void main(String[] args) throws InterruptedException {

        ApplicationContext context = new ClassPathXmlApplicationContext("user.xml", "person.xml");
        User user = (User) context.getBean("user");
        System.out.println(user.toString());
        Person person = (Person) context.getBean("person");
        System.out.println(person.toString());
    }

}
